height,weight = eval(input("请输入身高(cm)和体重(kg):"))
BMI = weight/pow(height,2)
print("BIM数值为:{:.2}".format(BMI))
dom = ""
if BMI < 18.5:
    dom = "过轻"
elif 18.5 <= BMI < 25:
    dom = "正常"
elif 25 <= BMI <28:
    dom = "过重"
elif 28 <= BMI < 32:
    dom = "肥胖"
elif BMI >= 32:
    dom = "严重肥胖"
print(dom)

